Form

This applet displays a classic form. You can add : labels, checkboxes, radiogroups, textfields, textareas and comboboxes. When the visitor clicks the send button the informations will be send by email to a custom email adress.

Note: This applet won't work if your web server doesn't host a mail server too. Try it online to know if it works fine on your site (or try the EmailSender applet : send an email and read the messages in the bottom output area).

Name

Description

Default

Status

frame_width the frame width (pixels) 200 required
frame_height the frame height (pixels) 200 required
frame_title the frame title "Information" required
button_send_text the send button label "Send" required
button_cancel_text the cancel button label "Cancel" required
frame_background_color the frame background color window color required
send_link the visitor will be redirected to this link if the send button is clicked no redirection optional
cancel_link the visitor will be redirected to this link if the cancel button is clicked no redirection optional
target the target of the redirection :
- "_blank" : show in a new unnamed top-level window
          - "_self" : show in the current frame
           - "_parent" : show in the parent frame
           - "_top" : show in the top-most frame
or a custom frame name
_blank required
mode 0: the form is shown on page load
1: the box is shown when the visitor clicks on a button
0 required
button_show_text the button label (if mode is 1) "Enter !" optional
background_color the applet background color usual grey applet required
component1, component2, ..., componentN the N component in the box. You can place 5 sorts of components and labels. The parameter format is the following: Each component has a type, a name, a width and a height. These four parameters are common to the 5 possible components. The sub-parameters in a component parameter are separated by a #. If you set the width or the height to 0 then the applet will try to determine itself this width or height.

1) checkbox: it is a classic checkbox which can be checked or not

"type#name#width#height#caption#checked?"
type : "checkbox"
caption : the checkbox caption on screen
checked? : "yes" will initially checked the checkbox, "no" will not

example: "checkbox#job#0#0#I have a job#yes"

 

2) radiogroup: it is a group of checkboxes, but only one can be selected

"type#name#width#height#item1#item2#...#itemN#item_selected"
type: "radiogroup"
item1#item2#...#itemN: the N items of the checkbox
item_selected: the item index which is initially selected (from 1 to N)

example: "radiogroup#children#0#0#one#two#three#1"

 

3) combobox:  it is a classic combobox which shows a list of items on click.

"type#name#width#height#item1#item2#...#itemN#item_selected"
type: "combobox"
item1#item2#...#itemN: the N items of the combobox
item_selected: the item index which is initially selected (from 1 to N)

example: "combobox#children#0#0#one#two#three#1"

4) textfield: a classic textfield to enter a line of text

"type#name#width#height#initial_text"
type: "textfield"
initial_text: the initial text in the textfield

example: "textfield#email#0#0#enter your email here"

5) textarea: like a textfield but you can enter several lines

type#name#width#height#initial_line1#initial_line2#...#initial_lineN
type: "textarea"
initial_line1#initial_line2#...#initial_lineN: the N initial lines in the textarea

example:
"textarea#story#0#0#write here a story#(3-5) lines

label: the label is a single line of text, which you can put between the components to describe the visitor what he has to do. The labels work like components with the following structure:

"type#0#0#caption"
type: "label"
caption: the text of the label
Note that there is no name for a label

example: "label#0#0#enter your email below:"

View the sample "form.htm" to have a complete example

- required
space the vertical space between 2 components (pixels) 15 required
email_header the top of the email you will receive a classic sentence optional
sender_email your email address home@taijisoftware.com required
recipient_email the recipient email address home@taijisoftware.com required
registration_code the registration code - required

 

Special notes

* You can put relative URL (to target a file on your site) or absolute (with "http://...")
URL. example:
    relative URL: ../home/home.html
    absolute URL: http://www.yahoo.com

* The color format is hexadecimal format like this : blue is "#0000ff"", red is "#ff0000" ... If you want that the background color is the same as the one of the page, look at the html source file and find the balise : <body bgcolor="#00FFFF"> then copy the value, here it's "#00ffff". Use the "HexColor" applet to convert RGB color to hexadecimal color.

 

Copyright 1999-2000 Taiji Software
All Rights Reserved
http://www.taijisoftware.com
support@taijisoftware.com